package com.zhouxiaoge.反射;

/**
 * @author 周小哥  gqzmy@163.com 2023/3/5 20:20
 */

public class Student {

    public String name;

    protected int age;

    char sex;

    private String phoneNum;

    public Student() {
    }

    private Student(char sex) {
        this.sex = sex;
    }

    protected Student(int age) {
        this.age = age;
    }

    private Student(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Student(String name, int age, char sex, String phoneNum) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.phoneNum = phoneNum;
    }

    @Override
    public String toString() {
        return "Student{" + "name='" + name + '\'' + ", age=" + age + ", sex=" + sex + ", phoneNum='" + phoneNum + '\'' + '}';
    }
}
